import React from 'react';
import {useNavigate } from 'react-router-dom'
interface IFunc{
  gotoabout?:()=>void
}
export default function Home(props:IFunc) {
  const navigate = useNavigate();
  
  function gotoabout(){
    navigate('/about/123')
    
  }
  return (
    <div>
      <h1>home-----</h1>
      <button onClick={gotoabout}>about</button>
    </div>
  )
}
